//-------------------------------------------------------------------------------------
// event function for function: pause(), pauses on click, stores to GM
function pausePlayer() 
{
		GM_setValue('paused',1);
		pauseButton.setAttribute("style", "position: absolute; left: "+(bannerLeft+330)+"px; top: "+(bannerTop+50)+"px; font-family: tahoma; font-size: 10pt; font-weight: 600; -moz-user-select: none; -khtml-user-select: none; cursor: pointer; color:red;");
		pauseButton.innerHTML = "Resume Autoplayer";
		pauseButton.addEventListener('click', resumePlayer, false);
		window.clearTimeout(reloadTimer);
		window.clearTimeout(logicTimer);
}
